import java.io.File;

/**
 * @Author YuanYuan
 * @Date 2022/9/27
 * @Time 20:46
 */
public class TestDemo5 {
    //重命名
    public static void main(String[] args) {
        File srcFire = new File("aaa.txt");
        File destFire = new File("bbb.txt");
        srcFire.renameTo(destFire);
    }
}
